<template>
    <div>
        <h3>{{info.title}}</h3>
        <hr>
        <div class="content" v-html="info.content"></div>
    </div>
</template>
<script>
export default {
   data(){
       return{
           info:{}//图文容器
       };
   
    },
    created(){
             this.getGoodsDesc();
    },
    methods:{
        getGoodsDesc(){
            this.$http.get("http://localhost:3000/src/db/goodsdesc.json?id="+this.$route.params.id).then(result=>{
                console.log(result);
                this.info=result.body[0];
            })
        }
    }
    

    
}
</script>
<style lang="scss" scoped>

</style>
